package research.domain;

import java.util.Set;

import research.entity.Entity;
import research.entity.EntityType;

public final class Preparation extends Entity {
	private String name;
	private Mixer mixer;
	private Double time1;
	private Double speed1;
	private Double temperature1;
	private String description1;
	private Double time2;
	private Double speed2;
	private Double temperature2;
	private String description2;
	private Double time3;
	private Double speed3;
	private Double temperature3;
	private String description3;
	private Set<Sample> samples;

	public Preparation() {
		super(EntityType.Preparation);
	}

	@Override
	public String getDisplayName() {
		return this.getName();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Mixer getMixer() {
		return mixer;
	}

	public void setMixer(Mixer mixer) {
		this.mixer = mixer;
	}

	public Double getTime1() {
		return time1;
	}

	public void setTime1(Double time1) {
		this.time1 = time1;
	}

	public Double getSpeed1() {
		return speed1;
	}

	public void setSpeed1(Double speed1) {
		this.speed1 = speed1;
	}

	public Double getTemperature1() {
		return temperature1;
	}

	public void setTemperature1(Double temperature1) {
		this.temperature1 = temperature1;
	}

	public String getDescription1() {
		return description1;
	}

	public void setDescription1(String description1) {
		this.description1 = description1;
	}

	public Double getTime2() {
		return time2;
	}

	public void setTime2(Double time2) {
		this.time2 = time2;
	}

	public Double getSpeed2() {
		return speed2;
	}

	public void setSpeed2(Double speed2) {
		this.speed2 = speed2;
	}

	public Double getTemperature2() {
		return temperature2;
	}

	public void setTemperature2(Double temperature2) {
		this.temperature2 = temperature2;
	}

	public String getDescription2() {
		return description2;
	}

	public void setDescription2(String description2) {
		this.description2 = description2;
	}

	public Double getTime3() {
		return time3;
	}

	public void setTime3(Double time3) {
		this.time3 = time3;
	}

	public Double getSpeed3() {
		return speed3;
	}

	public void setSpeed3(Double speed3) {
		this.speed3 = speed3;
	}

	public Double getTemperature3() {
		return temperature3;
	}

	public void setTemperature3(Double temperature3) {
		this.temperature3 = temperature3;
	}

	public String getDescription3() {
		return description3;
	}

	public void setDescription3(String description3) {
		this.description3 = description3;
	}

	public Set<Sample> getSamples() {
		return samples;
	}

	public void setSamples(Set<Sample> samples) {
		this.samples = samples;
	}

	public static Preparation getNew() {
		Preparation res = new Preparation();
		res.setName("");
		res.setDescription1("");
		res.setDescription2("");
		res.setDescription3("");
		return res;
	}

}
